import request from '@/utils/request'

// 查询家属绑定列表
export function listCustomerBind(query) {
  return request({
    url: '/system/customerBind/list2',
    method: 'get',
    params: query
  })
}

// 查询家属绑定详细
export function getCustomerBind(id) {
  return request({
    url: '/system/customerBind/' + id,
    method: 'get'
  })
}

// 新增家属绑定
export function addCustomerBind(data) {
  return request({
    url: '/system/customerBind',
    method: 'post',
    data: data
  })
}

// 修改家属绑定
export function updateCustomerBind(data) {
  return request({
    url: '/system/customerBind',
    method: 'put',
    data: data
  })
}

// 删除家属绑定
export function delCustomerBind(id) {
  return request({
    url: '/system/customerBind/' + id,
    method: 'delete'
  })
}
